package com.headingsoft.jxc.domain;

import javax.persistence.Enumerated;
import javax.persistence.ManyToOne;
import javax.validation.constraints.Size;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class Partner {
	private String name;
	private String contactName;
	private String contactMobile;
	private String tel;
	private String address;
	private String contactQQ;
	private String url;
	
	@ManyToOne
	private CustomerLevel level;
	
	@Enumerated
	private PartnerType partnerType;
	
	private String jobTitle;
	private String email;
	private String faxNo;
	private String zipCode;
	private String imWangwang;
	
	@Size(max = 512)
	private String remark;
	
	private float discount;
	
	
	public static enum PartnerType {
		CUSTOMER, SUPPLIER
	}
}
